<div class="container" style="width:600px;height:400px;">
    <div class="jumbotron" onselectstart="return false;" >
		<form method="post" action="<?php echo Yii::app()->request->baseUrl?>/sudoku/addnewsudoku">
			<div class="container">
				<button class="btn btn-success" onclick="sudokuAddSubmit()">保存</button>
				<a class="btn btn-info" href="<?php echo Yii::app()->request->baseUrl?>/sudoku/sudokumanagepage">返回</a>
				<input type="text" name="name" class="form-control" style="width:300px" placeholder="好的数独得有个好名字" required />
				<input type="text" id="content" name="content" class="form-control" style="display:none" placeholder="sudokucontent" />
				<div id="sudoku"><?php $this->getNewSudoku();?></div>
			</div>
			
			<div id="num" style="position:absolute;display:none">
					<button type="button" class="btn btn-default" onclick="hideNum()">
						<span class="glyphicon glyphicon-remove"></span>
					</button>	
					<?php $this->getNum();?>	
			</div>
		</form>
	</div>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/game.js"></script>
</div>
<div class="container" style="width: 200px;position: fixed;top: 150px;right: 0px;">
	<div class="jumbotron" style="width: 200px;margin:0;padding:0;">
	<script>
		function getTypifySudoku(type)
		{
			$("#sudoku").load("getTypifySudoku?type="+type);
		}
	</script>
		<h3 style="text-align:center;">AUTO数独生成</h3>
		<table>
		<tr><td><button style="width: 200px" class="btn btn-info" onclick="getTypifySudoku(0)">随机型</button></td></tr>
		<tr><td><button style="width: 200px" class="btn btn-success" onclick="getTypifySudoku(1)">♥型</button></td></tr>
		<tr><td><button style="width: 200px" class="btn btn-info" onclick="getTypifySudoku(2)">x型</button></td></tr>
		<tr><td><button style="width: 200px" class="btn btn-success" onclick="getTypifySudoku(3)">囧型</button></td></tr>
	</div>
</div>

